package com.ruoyi.lm.controller;

import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.framework.util.ShiroUtils;
import com.ruoyi.lm.domain.LmLevelpackage;
import com.ruoyi.lm.service.ILmLevelpackageService;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 会员套餐包Controller
 * 
 * @author ruoyi
 * @date 2020-09-02
 */
@Controller
@RequestMapping("/phone/lm/levelpackage")
public class LmLevelpackageControllerPhone extends BaseController
{

    @Autowired
    private ILmLevelpackageService lmLevelpackageService;

    /**
     * 查询会员套餐包列表
     */
    @PostMapping("/list")
    @ResponseBody
    public TableDataInfo list(LmLevelpackage lmLevelpackage)
    {
        List<LmLevelpackage> list = lmLevelpackageService.selectLmLevelpackageList(lmLevelpackage);
        for(int i=0;i<list.size();i++){
            if("821555023015055360".equals(list.get(i).getId())){
                list.remove(list.get(i));
            }
        }
        return getDataTable(list);
    }

}
